home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
TURB_VIS
/
XDATE
/
DT_TEST.PAS
next >
Wrap
Pascal/Delphi Source File
|
1992-02-05
|
1KB
|
62 lines
{*****************************************************************}
{ Author: Michael L. Peters }
{ Date: February 3, 1992 }
{ Purpose: To demonstrate the XDate Unit. }
{ Copywrite (c): Avialable to the public domain }
{ }
{*****************************************************************}
program DT_Test;
uses
Dos, Objects, Drivers, Views, App,
Gadgets,
XDate;
type
{ TTD_Test }
PTD_Test = ^TTD_Test;
TTD_Test = object(TApplication)
Date: PDateView;
clock: PClockView;
constructor Init;
procedure Idle; virtual;
end;
constructor TTD_Test.Init;
var
R: TRect;
I: Integer;
begin
TApplication.Init;
GetExtent(R);
R.A.X := R.B.X - 9;R.B.Y := R.A.Y + 1;
Clock := New(PclockView, Init(R));
Insert(clock);
GetExtent(R);
Dec(R.B.X);
R.A.X := R.B.X - 14;R.A.Y := R.B.Y - 1;
Date := New(PdateView, Init(R));
Insert(date);
end;
procedure TTD_Test.Idle;
begin
TApplication.Idle;
date^.Update;
clock^.Update;
end;
var
Demo: TTD_Test;
begin
Demo.Init;
Demo.Run;
Demo.Done;
end.